from google.appengine.api import users
import logging
from jsonrpc import handleCGI, ServiceMethod

class Passwordle_Ajax_Services(object):
  @ServiceMethod
  def get_password(self, id):
    raise Exception("Not implemented")

  @ServiceMethod
  def get_all_passwords(self):
    raise Exception("Not implemented")

  @ServiceMethod
  def save_password(self, password_data):
    raise Exception("Not implemented")
  
  @ServiceMethod
  def save_all_passwords(self, password_list):
    '''Moves CURRENT passwords to the PREVIOUS snapshot
       Adds in all these new passwords as the PREVIOUS ones
       Commits the changes on atomically'''
    raise Exception("Not implemented")

  @ServiceMethod
  def share_password(self, user, password_data):
    raise Exception("Not implemented") 

if __name__ == '__main__':
  logging.getLogger().setLevel(logging.DEBUG)
  handleCGI(Passwordle_Ajax_Services())
